Skip to content

Conversation

znck
Copy link
Member

@znck znck commented Jan 14, 2019

Revert source-map to v0.6.1 as starting 0.7.0 there is no sync API.

@znck znck requested a review from yyx990803 January 14, 2019 22:35
@haoqunjiang haoqunjiang merged commit 81be0ca into master Jan 30, 2019
@@ -108,5 +119,5 @@ function generateSourceMap(
})
}
})
return map.toJSON()
return JSON.parse(map.toString())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to ask, why is this needed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not required with 0.6.1. Please revert this line.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😂I think I found the answer…
There was a.d.ts file added to the source-map package since v0.5.7, but missing toJSON declaration in SourceMapGenerator until v0.7.0. So we can't use this method unless we patch its type definitions…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants